﻿@model LeadMaster.ViewModels.ViewModelContacts

<div class="spacer"></div>
<fieldset>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Company)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Address1)
    </div>
    @if (Model.Company.Address2 != null && Model.Company.Address2.Trim().Length > 0)
    {
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Address2)
    </div>
    }
    @if (Model.Company.District != null && Model.Company.District.Trim().Length > 0)
    {   
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.District)
    </div>
    }
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Town)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.County)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Postcode)
    </div>

    <div class="greyed">
         @Html.DisplayNameFor(model => model.Company.Telephone)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Telephone)
    </div>

    <div class="greyed">
         @Html.DisplayNameFor(model => model.Company.Email)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Email)
    </div>

    @if (Model.Company.WWW !=null && Model.Company.WWW.Trim().Length > 0)
    {
    <div class="greyed" >
         @Html.DisplayNameFor(model => model.Company.WWW)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.WWW)
    </div>
        }
    <div class="greyed">
         @Html.DisplayNameFor(model => model.Company.HeadOffice)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.HeadOffice)
    </div>

    <div class="greyed">
         @Html.DisplayNameFor(model => model.Company.Branch)
    </div>
    <div class="boldlabel">
        @Html.DisplayFor(model => model.Company.Branch)
    </div>
</fieldset>
<div class="spacer"></div>
<div id="contactdetails">
@Html.Partial("~/Views/Contacts/Index.cshtml",@Model)
</div>
<div style="margin-top: 10px; float: right;">
    <input type="button" value="Close" class="bigsubmit" id="companydetailscancel" />
</div>


<script type="text/javascript">
    $().ready(function () {

        $("#companydetailscancel").click(function () {
            $("#companiesdetailsdialog").dialog('close');
        });

    });
</script>